package com.cmj.service;


import com.cmj.domain.ResponseResult;
import com.cmj.domain.dto.CategoryDto;
import com.cmj.domain.entity.Category;
import com.cmj.domain.vo.CategoryVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 分类表(Category)表服务接口
 *
 * @author makejava
 * @since 2022-03-13 10:46:07
 */
public interface CategoryService {

    /***
     * 获取分类列表
     * @return 返回分类列表
     */
    ResponseResult getCategoryList();

    ResponseResult getCategoryList(Integer pageNum, Integer pageSize, CategoryDto categoryDto);

    ResponseResult delCategory(Long[] id);

    ResponseResult<CategoryVo> addCategory(Category category);

    ResponseResult updateCategory(Category category);

    ResponseResult<CategoryVo> getCategory(Long id);

    void exportCategory(HttpServletResponse response) throws IOException;

    ResponseResult<CategoryVo> getListAllCategory();
}
